home *** CD-ROM | disk | FTP | other *** search
/ Whiteline: delta / whiteline CD Series - delta.iso / vision / povray / scenes / level3 / wealth.pov < prev    next >
Text File  |  1995-11-25  |  3KB  |  164 lines

  1. // Persistence Of Vision raytracer version 2.0 sample file.
  2.  
  3. // By Tom Price
  4. // Modification to two-layer wood texture by Dan Farmer 01/92
  5. // Image should be run at 640x480 or greater to take full advantage of
  6. // the wood texture, preferably with a rather tight anti-aliasing threshold.
  7. // Also commented out the random dithering values and bounded the coin
  8. // object.
  9.  
  10. #include "colors.inc"
  11. #include "shapes.inc"
  12. #include "textures.inc"
  13.  
  14. // a dark wood with a greenish hue to it
  15. #declare New_Dark_Wood1 = pigment {
  16.    wood
  17.    turbulence 0.02
  18.    colour_map {
  19.       [0.0 0.8  colour red  0.42857 green 0.23810 blue 0.04762
  20.                 colour red  0.42857 green 0.23810 blue 0.04762]
  21.       [0.8 1.01 colour red 0.4 green 0.333 blue 0.066
  22.                 colour red 0.2 green 0.033 blue 0.033]
  23.    }
  24. }
  25.  
  26. // Overlaying woodgrain
  27. #declare New_Dark_Wood2 = pigment {
  28.    wood
  29.    turbulence 0.022
  30.    colour_map {
  31.       [0.0 0.5  colour Clear  colour Clear]
  32.       [0.5 1.01 colour red 0.4 green 0.333 blue 0.066 filter 0.5
  33.                 colour red 0.2 green 0.033 blue 0.033 filter 0.25]
  34.    }
  35. }
  36.  
  37. camera {
  38.    location <0.0, 75.0, -100.0>
  39.    direction <0.0, -0.5, 1.0>
  40.    up <0.0, 1.0, 0.0>
  41.    right <4/3, 0.0, 0.0>
  42. }
  43.  
  44. plane {
  45.    y, -10
  46.  
  47.    texture {
  48.       pigment {
  49.          New_Dark_Wood1
  50.          scale <.25, .25, 1>
  51.          rotate 90*y
  52.          quick_color Brown
  53.       }
  54.       finish {
  55.          ambient 0.8
  56.          diffuse 0.2
  57.          reflection 0.4
  58.          brilliance 3.0
  59.       }
  60.    }
  61.  
  62.    texture {
  63.       pigment {
  64.          New_Dark_Wood2
  65.          scale <.25, .25, 1>
  66.          rotate <0, 90, 1.5>
  67.          quick_color Brown
  68.       }
  69.    }
  70. }
  71.  
  72. plane {
  73.    y, 200
  74.  
  75.    texture {
  76.       pigment { color blue 0.5 red 0.2 green 0.2 }
  77.       finish {
  78.          ambient 0.5
  79.          diffuse 0.5
  80.       }
  81.    }
  82. }
  83.  
  84. light_source { <60.0, 100.0, -110.0> color White }
  85.  
  86. light_source { <-60.0, 100.0, -110.0> color LightGray }
  87.  
  88.  
  89. #declare Coin = intersection {
  90.    object { Cylinder_Y scale <20.0, 1.0, 20.0> }
  91.    plane { y, 1 }
  92.    plane { y, -1 inverse }
  93.  
  94.    bounded_by { sphere { <0, 0, 0> 21} }
  95.  
  96.    texture { 
  97.       pigment { color red 1.0 green 0.89 blue 0.55 }
  98.       finish {
  99.          ambient 0.2  diffuse 0.6
  100.          reflection 0.6
  101.          brilliance 4.0
  102.          specular 0.5
  103.          metallic
  104.       }
  105.    }
  106. }
  107.  
  108. object {
  109.    Coin
  110.    rotate <-15.0, 0.0, -2.0>
  111.    translate <-27.0, -2.0, -3.0>
  112. }
  113.  
  114. object {
  115.    Coin
  116.    rotate -15.0*x
  117.    translate <-28.0, 3.0, 2.0>
  118. }
  119.  
  120. object {
  121.    Coin
  122.    rotate -15.0*x
  123.    translate <-30.0, 10.0, 0.0>
  124. }
  125.  
  126. object {
  127.    Coin
  128.    rotate -15.0*x
  129.    translate <-29.0, 20.0, -2.0>
  130. }
  131.  
  132. object {
  133.    Coin
  134.    rotate <-15.0, 0.0, -10.0>
  135.    translate <-31.0, 30.0, 3.0>
  136. }
  137.  
  138. object {
  139.    Coin
  140.    rotate -15.0*y
  141.    translate <-26.0, 40.0, 5.0>
  142. }
  143.  
  144. object {
  145.    Coin
  146.    rotate <-25.0, 0.0, 15.0>
  147.    translate <-23.0, 50.0, 8.0>
  148. }
  149.  
  150. // A reflective sphere
  151. sphere {
  152.    <40, 25, 40>, 35
  153.  
  154.    texture {
  155.       pigment { White }
  156.       finish {
  157.          ambient 0.1
  158.          diffuse 0.3
  159.          reflection 0.95
  160.          brilliance 5.0
  161.       }
  162.    }
  163. }
  164.